import request from '@/utils/request'

const baseUrl = window.baseUrl

export function getPage(params) {
  return request({
    url: baseUrl + 'group/getPage',
    method: 'get',
    params
  })
}

export function get(params) {
  return request({
    url: baseUrl + 'group/get',
    method: 'get',
    params
  })
}

export function save(params) {
  return request.post(baseUrl + 'group/save', params)
}

export function update(params) {
  return request.post(baseUrl + 'group/edit', params)
}

export function del(params) {
  return request.post(baseUrl + 'group/delete', params)
}

export function getGroup(params) {
  return request.post(baseUrl + 'group/getGroup', params)
}  

